<?php
/* @var $this HrAdminRightController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Hr Admin Rights',
);

$this->menu=array(
	array('label'=>'Create HrAdminRight', 'url'=>array('create')),
	array('label'=>'Manage HrAdminRight', 'url'=>array('admin')),
);
?>

<span class="page_h3">模块管理</span>

<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'user-grid',
    'dataProvider'=>$dataProvider,
	'columns'=>array( 
		'id',
		'c',
		'a',
		'desc',
		array(            // display a column with "view", "update" and "delete" buttons
            'class'=>'CButtonColumn',
			'template'=>'{update}',
			'buttons'=>array(
                    'update' => array(
                            'label'=>'修改',     // text label of the button
                            'url'=>'Yii::app()->controller->createUrl("HrAdminRight/update",array("id"=>$data->primaryKey))',       // a PHP expression for generating the URL of the button
                            'imageUrl'=>Yii::app()->request->baseUrl.'/global/img/icons/page_white_edit.png',  // image URL of the button. If not set or false, a text link is used
                            'options'=>array('style'=>'cursor:pointer;'), // HTML options for the button tag
                            'visible'=>'true',
                    )
            ),
			
        ),
		), 
		
));
?>
